<template>
   <el-table :data="tableData" style="width: 100%;" class="mt-5">
      <el-table-column prop="id" label="编号" width="180"> </el-table-column>
      </el-table-column>
      <el-table-column prop="name" label="测量类型名称" width="150"> </el-table-column>
      <el-table-column prop="unit" label="测量单位" width="150"> </el-table-column>
      <el-table-column prop="cTime" label="创建时间" :formatter="formatdata1"> </el-table-column>
      <el-table-column prop="uTime" label="更新时间" :formatter="formatdata2"> </el-table-column>
     <el-table-column
      fixed="right"
      label="操作"
      width="200" style="">
      <template slot-scope="scope">
        <el-button type="primary" size="small"  @click="$emit('edit',scope.row) ">编辑</el-button>
        <el-button type="danger" size="small" @click="$emit('del',scope.row)">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: ["tableData"],
  methods: {},
};
</script>

<style>
</style>